package com.hdax.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hdax.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * <p>
 * 客户表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Repository

public interface CustomerMapper extends BaseMapper<Customer> {

    IPage<Customer> findCustomer(IPage<?> page, @Param("map") Map map);
    Customer findCustomerById(Integer id);
    Integer findThisMonthCustomerAddCount();
    Integer findCustomerCount();
    Float findCustomerChainCompare();
    Map findThisYearCustomerIncre();
}
